package com.aisile.user.client;

import com.aisile.model.article.pojos.ApAuthor;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Auther:yry
 * @Date:2024/1/2 0002
 * @VERSON:1.0
 */
@FeignClient("leadnews-article")
public interface ArticleFeign {

    @GetMapping("/api/v1/author/findByUserId/{id}")
    public ApAuthor findByUserId(@PathVariable("id") Integer id);

    @PostMapping("/api/v1/author/save")
    public ApAuthor save(@RequestBody ApAuthor apAuthor);
}
